package cn.edu.scau.dormitory_management_system.service.impl;

import cn.edu.scau.dormitory_management_system.dao.LoginLogDao;
import cn.edu.scau.dormitory_management_system.entity.LoginLogEntity;
import cn.edu.scau.dormitory_management_system.service.LoginLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author djc
 * @date 2021/8/4
 * @time 11:56
 */

@Service
public class LoginLogServiceImpl extends ServiceImpl<LoginLogDao, LoginLogEntity> implements LoginLogService {
    @Autowired
    private LoginLogDao dao;

    @Override
    public boolean insertLog(LoginLogEntity logEntity) {
        return dao.addLog(logEntity) > 0;
    }
}
